﻿namespace Office.Utility.Toolbar
{
    /// <summary>
    /// Event arguments for BeforeShowCommandBar event
    /// </summary>
    public class BeforeShowCommandBarEventArgs : CommandBarEventArgs
    {
        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="BeforeShowCommandBarEventArgs"/> is visible.
        /// </summary>
        /// <value><c>true</c> if visible; otherwise, <c>false</c>.</value>
        public bool Visible { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="BeforeShowCommandBarEventArgs"/> is enabled.
        /// </summary>
        /// <value><c>true</c> if enabled; otherwise, <c>false</c>.</value>
        public bool Enabled { get; set; }

        internal BeforeShowCommandBarEventArgs(WindowAdapter window, Microsoft.Office.Core.CommandBar bar, bool visible, bool enabled)
            : base(window, bar)
        {
            Visible = visible;
            Enabled = enabled;
        }
    }
}